package sys;/**
 * @Describe：
 * @Author： liuyingao
 * @date： 2022-04-02-22:35
 */

/**
 * @Describe:[]
 * @title Console
 * @author liuyingao
 * @create 2022-04-02 22:35
 * @desc Console
 **/
public class Console {

    private final static Console console = new Console();

    private Console() {};

    public static Console getInstance() {
        return console;
    }

    private final String RESET = "\033[0m";

    public void log(String log) {
        System.out.println(log);
    }

    public void log(Object o) {
        System.out.println(o);
    }

    public void error(String log) {
        System.out.println("\033[0;31m" + log + RESET);
    }

    public void info(String log) {
        System.out.println("\033[0;34m" + log + RESET);
    }

    public void sexy(String log) {
        System.out.println("\033[0;33m" + log + RESET);
    }

    public void success(String log) {
        System.out.println("\033[0;32m" + log + RESET);
    }
}
